CHILD_PROP_POSITION,
CHILD_PROP_TAB_EXPAND,
CHILD_PROP_TAB_FILL,
- CHILD_PROP_TAB_PACK,
CHILD_PROP_REORDERABLE,
CHILD_PROP_DETACHABLE
};
TRUE,
GTK_PARAM_READWRITE));
- /**
- * GtkNotebook:tab-pack:
- *
- * Deprecated: 2.20: The tab packing functionality of children should not
- * be used anymore and support will be removed in the future.
- */
- gtk_container_class_install_child_property (container_class,
- CHILD_PROP_TAB_PACK,
- g_param_spec_enum ("tab-pack",
- P_("Tab pack type"),
- P_("A GtkPackType indicating whether the child is packed with reference to the start or end of the parent"),
- GTK_TYPE_PACK_TYPE, GTK_PACK_START,
- GTK_PARAM_READWRITE));
gtk_container_class_install_child_property (container_class,
CHILD_PROP_REORDERABLE,
g_param_spec_boolean ("reorderable",
GtkWidget *tab_label, *menu_label;
gboolean tab_expand, tab_fill, reorderable, detachable;
GList *element;
- guint tab_pack;
+ guint tab_pack = GTK_PACK_START;
gint page_num;
menu_label = gtk_notebook_get_menu_label (from, child);
child,
"tab-expand", &tab_expand,
"tab-fill", &tab_fill,
- "tab-pack", &tab_pack,
"reorderable", &reorderable,
"detachable", &detachable,
NULL);
gtk_notebook_insert_page_menu (to, child, tab_label, menu_label, page_num);
gtk_container_child_set (GTK_CONTAINER (to), child,
- "tab-pack", tab_pack,
"tab-expand", tab_expand,
"tab-fill", tab_fill,
"reorderable", reorderable,
g_value_get_boolean (value),
pack_type);
break;
- case CHILD_PROP_TAB_PACK:
- gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (container), child,
- &expand, &fill, &pack_type);
- gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (container), child,
- expand, fill,
- g_value_get_enum (value));
- break;
case CHILD_PROP_REORDERABLE:
gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (container), child,
g_value_get_boolean (value));
GtkWidget *label;
gboolean expand;
gboolean fill;
- GtkPackType pack_type;
/* not finding child's page is valid for menus or labels */
list = gtk_notebook_find_child (notebook, child, NULL);
NULL, &fill, NULL);
g_value_set_boolean (value, fill);
break;
- case CHILD_PROP_TAB_PACK:
- gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (container), child,
- NULL, NULL, &pack_type);
- g_value_set_enum (value, pack_type);
- break;
case CHILD_PROP_REORDERABLE:
g_value_set_boolean (value,
gtk_notebook_get_tab_reorderable (GTK_NOTEBOOK (container), child));
gtk_widget_child_notify (child, "tab-expand");
gtk_widget_child_notify (child, "tab-fill");
- gtk_widget_child_notify (child, "tab-pack");
gtk_widget_child_notify (child, "tab-label");
gtk_widget_child_notify (child, "menu-label");
gtk_widget_child_notify (child, "position");
page->pack = pack_type;
gtk_notebook_child_reordered (notebook, page);
}
- gtk_widget_child_notify (child, "tab-pack");
gtk_widget_child_notify (child, "position");
if (priv->show_tabs)
gtk_notebook_pages_allocate (notebook);
/* Move around the menu items if necessary */
gtk_notebook_child_reordered (notebook, page);
- gtk_widget_child_notify (child, "tab-pack");
gtk_widget_child_notify (child, "position");
if (priv->show_tabs)